Skip to content

feat: Add expiration date to access token & hmac keys#1219

Merged
michalsn merged 16 commits intocodeigniter4:developfrom
CosDiabos:feat/addTokensExpiration
Mar 3, 2025
Merged

feat: Add expiration date to access token & hmac keys#1219
michalsn merged 16 commits intocodeigniter4:developfrom
CosDiabos:feat/addTokensExpiration

Conversation

@CosDiabos
Copy link
Copy Markdown
Contributor

@CosDiabos CosDiabos commented Nov 3, 2024

Description
Implements custom date expiration for AccessTokens and Hmac Tokens leveraging the expires column within auth_identities table.

Implements setIdentityExpirationById() model method, updateAccessTokenExpiration(), removeAccessTokenExpiration(), isAccessTokenExpired(), hasAccessTokenExpiry(), updateHmacTokenExpiration(), removeHmacTokenExpiration(), isHmacTokenExpired(), hasHmacTokenExpiry() trait methods and the CLI command shield:hmac invalidateAll.

Implements and closes #926

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev: set the expiration date of the token when creating the token

6 participants